package com.byxy.service;

import com.byxy.dao.BaseDao;
import com.byxy.dao.FlowInfoDaoImpl;
import com.byxy.model.FlowInfo;

import java.util.List;

public class FlowInfoServiceImpl implements BaseService<FlowInfo> {
	BaseDao<FlowInfo> flowDao = new FlowInfoDaoImpl();
	
	@Override
	public int add(FlowInfo flow) {
		return flowDao.add(flow);
	}

	@Override
	public int deleteById(int id) {
		return flowDao.deleteById(id);
	}

	@Override
	public int update(FlowInfo flow) {
		return flowDao.update(flow);
	}

	@Override
	public List<FlowInfo> findAll() {
		return flowDao.findAll();
	}

	@Override
	public FlowInfo findById(int id) {
		return flowDao.findById(id);
	}

}
